<!DOCTYPE html>
<html>
<head>
    {include file="../application/common/header.html" /}
</head>

<body>
    <table id="teacher_function_moduledg">
        <thead>
            <tr>
                <th data-options="field:'ID',checkbox:true">ID</th>
                <th data-options="field:'RESOURCE_NAME',title:'模块名称',width:15,editor:{type:'validatebox',options:{required:true}}"></th>
                <th data-options="field:'RESOURCE_URL',title:'模块路径',width:20,editor:{type:'validatebox',options:{required:true}}"></th>
                <th data-options="field:'ICON',title:'图标',width:20,editor:{type:'validatebox',options:{required:true}}"></th>
                <th data-options="field:'WEIGHT',title:'顺序',editor:{type:'numberbox',options:{required:true}}"></th>
                <th data-options="field:'IS_EXT_LINK',title:'是否外部链接',width:10,editor:{type:'combobox',options:{required:true,data:[{'text':'否','value':'N',selected: true},{'text':'是','value':'Y'}]}},formatter:function(value,row,index){
                    if(value == 'N') return '否';
                    else return '是';
                }"></th>
                <th data-options="field:'IS_DELETE',title:'是否有效',width:10,editor:{type:'combobox',options:{required:true,data:[{'text':'有效','value':'N', selected: true},{'text':'禁用','value':'Y'}]}},formatter:function(value,row,index){
                    if(value == 'N') return '有效';
                    else return '禁用';
                }"></th>
                <th data-options="field:'IDS',title:'职位',width: 20,editor:{type:'combobox',options:{
                    valueField:'ID',
                    textField:'POSITION',
                    groupField:'DEPART',
                    method:'get',
                    url: '/compent/Util/organizeDepart',
                    multiple:true,
                    editable:false
                }},formatter(value,row,index) {
                    return '<span class=\'note\' title=\''+row.idsValue+'\'>'+ row.idsValue + '</span>';
                }"></th>
            </tr>
        </thead>
    </table>
    <script type="text/javascript">
        $(function(){
            var url = "/sysAdmin/teacher_function_module";
            initDatagridAdmin("teacher_function_module", url, 1, 1, 1, 1,0,1);
        })
    </script>

</body>
</html>